<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/4/19
  Time: 13:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
    <title>人员列表</title>

  </head>
  <body>
  <table width="700" cellspacing="0" cellpadding="0" align="center" border="1">
  <tr>
    <th>编号</th>
    <th>姓名</th>
    <th>性别</th>
    <th>年龄</th>
    <th>等级</th>
    <th>部门</th>
    <th>操作</th>
  </tr>
  <c:forEach items="${list}" var="li">
    <tr>
      <td>${li.id}</td>
      <td>${li.name}</td>
      <td>${li.gender}</td>
      <td>${li.age}</td>
      <td>${li.rank}</td>
      <td>${li.department}</td>
      <td>
        <a href="PersonServlet?opr=del&id=${li.id}">删除</a>
        <a href="PersonServlet?opr=gai&id=${li.id}">修改</a>
      </td>
    </tr>
  </c:forEach>
  </table>
  <a href="PersonServlet?opr=add">添加</a>

  </body>
</html>
